﻿<%@ Page Language="C#" Inherits="System.Web.Mvc.ViewPage<Framework.Mvc.ViewModels.LogOnViewModel>" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title>经销商登陆</title>
    <script src="/Scripts/jquery-1.4.2.min.js" type="text/javascript"></script>
</head>
<body>
    <div>
        <%using (Html.BeginForm())
          {
        %>
        用户名:<%: Html.TextBoxFor(m => m.Name) %><%: Html.ValidationMessageFor(m => m.Name) %>
        <br />
        密码:<%: Html.PasswordFor(m => m.Password) %><%: Html.ValidationMessageFor(m => m.Password) %>
        <br />
        验证码:<%: Html.TextBoxFor(m => m.VerfityCode) %><%: Html.ValidationMessageFor(m => m.VerfityCode) %>
        <img id="validimg" src="<%:Url.Action("CreateImageCode", "VerifyCode")%>" alt="验证码"
            width="75px" height="20px" style="vertical-align: middle" />
        <script type="text/javascript">
            $("#validimg").click(function () {
                $("#validimg").attr('src', '<%:Url.Action("CreateImageCode", "VerifyCode")%>' + "/" + Math.random());
            });
        </script>
        <input type="submit" value="提交" />
        <%
          } %>
    </div>
</body>
</html>
